package cn.sunshine.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CoursePlaceOrderDto {
    @NotEmpty(message = "课程ID不能为空")
    private List<Long> courseIds;
    @NotNull(message = "支付方式不能为空")
    private Integer payType; // 支付方式
    @NotEmpty(message = "token不能为空")
    private String token;

    private Integer type;
}
